package com.app.micaihu.bean.game;

import android.view.View;

import com.app.micaihu.R;
import com.app.micaihu.custom.view.CustomImageView;
import com.app.utils.util.image.LoadImageUtils;

/**
 * 小图视频
 * Created by linkai on 2017/3/14.
 */
public class ViewGameSmallVideo extends ViewGameParent {

    private CustomImageView imageView;

    public ViewGameSmallVideo(View convertView) {
        initView(convertView);
        convertView.setTag(this);
    }

    @Override
    protected void initView(View convertView) {
        super.initView(convertView);
        imageView = (CustomImageView) convertView.findViewById(R.id.item_small_image);
    }

    @Override
    public void loadData(GameRaidersEntity gameRaidersEntity) {
        super.loadData(gameRaidersEntity);
        LoadImageUtils.getInstance().loadImage(imageView,gameRaidersEntity.getArticleThumb().get(0));
    }
}
